import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {MemRaffleTicketComponent} from './mem-raffle-ticket.component';

const routes: Routes = [
    {
        path: '', component: MemRaffleTicketComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-mem-raffle-ticket/add-mem-raffle-ticket.module#AddMemRaffleTicketModule'},
            {path: 'list', loadChildren: './list-mem-raffle-ticket/list-mem-raffle-ticket.module#ListMemRaffleTicketModule'},
            {path: 'modify', loadChildren: './modify-mem-raffle-ticket/modify-mem-raffle-ticket.module#ModifyMemRaffleTicketModule'},
            {path: 'report', loadChildren: './report-mem-raffle-ticket/report-mem-raffle-ticket.module#ReportMemRaffleTicketModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class MemRaffleTicketRoutingModule {
}
